import { http } from '@/utils/http'

export function usePccApplyApi() {
  return {
    // 指定供应商
    saveComparisonCheck(data: any) {
      return http.post('/prod-api/admin-api/project/purchase-construction-contract-apply/comparisonCheck', data)
    },
    // 通过流程id查询采购合同申请
    getPccApplyByProcess(processInstanceId: string) {
      return http.get<PriceComparisonForm>('/prod-api/admin-api/project/purchase-construction-contract-apply/byProcessInstanceId?processInstanceId=' + processInstanceId)
    },
    // 获得采购合同申请
    getPccApplyById(id: string) {
      return http.get<PriceComparisonForm>('/prod-api/admin-api/project/purchase-construction-contract-apply/get?id=' + id)
    }
  }
}
